﻿using AiXiu.Model;
using Newtonsoft.Json;
using Reservoir.BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Reservoir.WebSite.Handler
{
    /// <summary>
    /// DeleteHandler 的摘要说明
    /// </summary>
    public class DeleteHandler : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            var id = Convert.ToInt32(context.Request["id"]);
            RecordBLL recordBLL = new RecordBLL();
            OperResult operResult = recordBLL.DeleteVideo(id);
            // 输出结果
            var data = JsonConvert.SerializeObject(operResult);
            context.Response.Write(data);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}